Skip to content

Fix preprocessing leaves unnecessary lifetimes#75

Merged
RoDmitry merged 9 commits intotypesense:mainfrom
haydenhoang:main
Mar 20, 2026
Merged

Fix preprocessing leaves unnecessary lifetimes#75
RoDmitry merged 9 commits intotypesense:mainfrom
haydenhoang:main

Conversation

@haydenhoang
Copy link
Contributor

Change Summary

This PR made changes to the preprocessing script to fix issue #65.

Only request models and models in this list are made to use Cow, not models that are BOTH request and response.

PR Checklist

Fixed typesense#65

Only request models and models whose name ending with `Parameters` are made to use Cow.
@RoDmitry
Copy link
Collaborator

Looks good. But I guess the meaning of x-rust-has-borrowed-data has changed. Previously it was mainly set to objects which contained strings, but what does it mean now? Why is it set to each string? Maybe rename so it would be meaningful?

@haydenhoang
Copy link
Contributor Author

haydenhoang commented Mar 19, 2026

I have removed the remaining unnecessary flags and also changed the name to x-rust-has-lifetime.

Edit: wait, look like there are still some unnecessary flags left, let me take a look...

@haydenhoang
Copy link
Contributor Author

Done.

@haydenhoang haydenhoang requested a review from RoDmitry March 20, 2026 05:44
@RoDmitry RoDmitry merged commit 093c7b3 into typesense:main Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants